package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/8/30 21:08
 */
@Controller
@RequestMapping("/login")
//@RestController
public class LoginController {
    @RequestMapping("login")
    @ResponseBody
    public String login(HttpSession session){
        session.setAttribute("user","zhangsan");
        return "success";
    }
}
